package com.bcxj.apipassenger.remote;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.dto.VerificationCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: ServicePassengerUserClient
 * Package: com.bcxj.apipassenger.remote
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/9/18 20:56
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {
    @PostMapping("/user")
    ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO);

    @GetMapping("/user")
    ResponseResult getUserInfo(@RequestParam("userPhone") String userPhone);
}
